﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Fondos.aspx.cs" Inherits="Administrador.Publicidad.Fondos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentHead" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentCuerpo" runat="server">
      <div class="jumbotron">
          <h1>Portal Administrativo Central
        </h1>
        <h3>Administración de Fondos de Pantalla
        </h3>
          <a data-toggle="modal" href="#myModal" class="btn btn-info">Cargar Nuevo Fondo</a>
 <br>
    </div>
    <div class="container">
        <div class="row clearfix">
           
            <div class="col-md-12 column">
               
                <table id="tblFondos" class="table table-bordered table-striped">
                  <thead>
                       <tr>
                                                <th>Nombre</th>
                                                <th>Imagen</th>
                                                <th>Tiempo</th>
												<th>Habilitado</th>
                                                <th>Editar</th>
                                                <th>Eliminar</th>
												
                                            </tr>
                   </thead>
                   <tbody>
                     <tr>
                        <td>
                            Ejemplo 1
                        </td>
                        <td>
                            
                            <center>
                         <img src="../Fondos/pepsi.JPG" alt="logo" style="width: 30%" /><br />
                            </center></td>
                        <td>
                           1 Dia
                        <td>
                            Si
                        <td>
                           
                            <center>
                              <asp:Button ID="Button1" class="btn btn-primary btn-sm" runat="server" Text="Modificar"></asp:Button>
                            </center></td>

                            <td>
                           
                            <center>
                                <asp:Button ID="Button2" runat="server" Text="Eliminar" class="btn btn-danger btn-sm"></asp:Button>
                            </center></td>
                    </tr>
                  
                   
                       </tbody>
                </table>
            </div>
        </div>
    </div>

       <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title">Cargar un nuevo fondo</h4>
                </div>
                <div class="modal-body">
                   <asp:FileUpload ID="fuContenido" runat="server"  />
                    <asp:Button ID="btnSubirContenido" runat="server" CssClass="btn btn-info" Text="Subir"  OnClick="btnSubirContenido_Click" />
                    <asp:Label ID="lblError" runat="server" Text="Label"></asp:Label>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-primary">Save changes</button>
                </div>
            </div>
            <!-- /.modal-content -->

                <script src="../js/plugins/datatables/jquery.dataTables.js" type="text/javascript"></script>
        <script src="../js/plugins/datatables/dataTables.bootstrap.js" type="text/javascript"></script>
		<script type="text/javascript">
		    $(function () {

		        $("#tblFondos").dataTable();
		    });
        </script>';
		
</asp:Content>
